/*
 * (C) 2005 National Australia Bank
 *
 * [All rights reserved]. This product and related documentation are protected
 * by copyright restricting its use, copying, distribution, and decompilation.
 * No part of this product or related documentation may be reproduced in any
 * form by any means without prior written authorization of
 * National Australia Bank. Unless otherwise arranged, third parties may not
 * have access to this product or related documents.
 */
package au.com.evoCoach.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import au.com.evoCoach.dao.CoachDAO;
import au.com.evoCoach.domain.Coach;

@Service
public class CoachService {
	private CoachDAO coachDAO;

	@Autowired
	public CoachService(CoachDAO coachDAO) {
		this.coachDAO = coachDAO;
	}
	
	public Coach authenticate(String coachName, String password) {
		return coachDAO.authenticate(coachName, password);
	}
	
	public void updateCoach(Coach coach) {
	    coachDAO.update(coach);
	}
}
